import Http from "@/http";

export function pageApi(params:any) {
    return Http.post('notice/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.post('notice/update', params) : Http.post('notice/add', params)
}


export function deleteApi(id) {
    return Http.post('notice/delete', {id: id})
}

export async function sendApi(id) {
    return Http.post('notice/send', {id: id})
}